package com.ympc.pojo;

/**
 * 课程资源实体类
 */
public class CourseResource {
    private Integer id;
    private Integer courseId; // 课程ID
    private String resourceName; // 资源名称
    private String resourceType; // 资源类型（PPT、源代码、实践报告、软件包、作业等）
    private String filePath; // 文件路径
    private String fileName; // 原始文件名
    private Long fileSize; // 文件大小（字节）
    private String description; // 资源描述
    private Integer chapterNumber; // 章节编号（可选）
    private String chapterName; // 章节名称（可选）
    private Boolean visible; // 是否可见
    private Boolean downloadable; // 是否可下载
    private Integer sortOrder; // 排序顺序

    public CourseResource() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getChapterNumber() {
        return chapterNumber;
    }

    public void setChapterNumber(Integer chapterNumber) {
        this.chapterNumber = chapterNumber;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public Boolean getDownloadable() {
        return downloadable;
    }

    public void setDownloadable(Boolean downloadable) {
        this.downloadable = downloadable;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    @Override
    public String toString() {
        return "CourseResource{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", resourceName='" + resourceName + '\'' +
                ", resourceType='" + resourceType + '\'' +
                ", filePath='" + filePath + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", description='" + description + '\'' +
                ", chapterNumber=" + chapterNumber +
                ", chapterName='" + chapterName + '\'' +
                ", visible=" + visible +
                ", downloadable=" + downloadable +
                ", sortOrder=" + sortOrder +
                '}';
    }
}

